/**
 * Created by ospip on 2017/9/18.
 * Copyright (c) 2017 LLAP. All rights reserved.
 */
public class Student {
    protected String stuNo = "";
    protected String name = "";
    protected char gender = 'U';
    protected String major = "";
    protected String intactClass = "";
    protected String idCard = "";

    public Student(String stuNo, String name, char gender, String major, String intactClass, String idCard) {
        this.stuNo = stuNo;
        this.name = name;
        this.gender = gender;
        this.major = major;
        this.intactClass = intactClass;
        this.idCard = idCard;
    }

    public String toString() {
        return String.format("<Student %s, %s, Gender: %c, Major: %s, Class: %s>",
                this.stuNo, this.name, this.gender, this.major, this.intactClass);
    }

    public static void main(String[] args) {
        Student s = new Student(
                "202161111",
                "LLLLL",
                'M',
                "CS",
                "CS1602",
                "320100100010001000"
        );
        System.out.println(s.toString());
    }
}
